const mongoose = require("mongoose");

const BookSchema = new mongoose.Schema({
    name: String,
    author: String,
    price: Number,
    is_hot: Boolean
});
// 创建模型对象
const BookModel = mongoose.model("books", BookSchema);

// 暴露出模型对象
module.exports = BookModel;